<template>
  <div class="btn">
      <slot>
      </slot>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue"
export default defineComponent({
    name:"Button"
})
</script>

<style lang="scss">
@import '~@/styles/mixin.scss';
@import '~@/styles/color.scss';
.btn{
    height: 36px;
    padding: 0 20px;
    margin-right: 10px;
    color: white;
    text-align: center;
    line-height: 36px;
    background-color: $mainColor;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
    -moz-user-select:none;/*火狐*/
    -webkit-user-select:none;/*webkit浏览器*/
    -ms-user-select:none;/*IE10*/
    -khtml-user-select:none;/*早期浏览器*/
      user-select:none;
    @include clickEffect;
    &:hover{
        opacity: .8;
    }
}
</style>